<html><!DOCTYPE html>
<html>
<head>
    <style>
        button { margin:10px; }
        div { color:blue; font-weight:bold; }
        span { color:red; }
    </style>

    <script src="../../../../../../../g.tbcdn.cn/kissy/k/1.3.2/seed.js" tppabs="http://g.tbcdn.cn/kissy/k/1.3.2/seed.js" data-config="{combine:true}"></script>
</head>
<body>
  <button id='up'>upload to doUpload.html</button>
  <form method='post' enctype='multipart/form-data' id='f'>
        <input name='user' value='chengyu' readonly />
  </form>

<script>
    KISSY.use('node,io',function (S,Node,IO) {
        var $=Node.all;
        $("#up").on("click",function(){
            IO.upload("doUpload.html","#f",function(d){
                alert("user : "+d.user+" \n email : "+d.email);                
            },"json");                                            
        });
    });
</script>

</body>
</html>